68b924863e7116e1c9ccafd88351a625c1dc7e38,src/main/java/net/schmizz/sshj/common/Buffer.java,Buffer,readPublicKey,#,427

Before Change


    public PublicKey readPublicKey()
            throws BufferException {
        try {
            final String type = readString();
            return KeyType.fromString(type).readPubKeyFromBuffer(type, this);
        } catch (GeneralSecurityException e) {
            throw new SSHRuntimeException(e);
        }

After Change


    public PublicKey readPublicKey()
            throws BufferException {
        try {
            final KeyType type = KeyType.fromString(readString());
            switch(type) {
              case RSA:
              case DSA: